package com.fortune.dao;

import com.fortune.constants.enums.ProductStock;
import com.fortune.vo.productStockDetailInfo.ProductStockDetailInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2018/5/28 0028.
 */
public interface DproductStockDetailInfoDao {

    /**
     * 添加商品库存明细账-验收入库
     * @param mid
     * @param date
     * @param productStock
     * @param list
     * @return
     */
    int insertProductStockDetail(@Param("mid") String mid,@Param("did")String did,@Param("date") Date date, @Param("productStock") ProductStock productStock, @Param("list") List<ProductStockDetailInfo> list);

    /**
     * 添加商品库存明细账-初始化入库
     * @param mid
     * @param date
     * @param productStock
     * @param list
     * @return
     */
    int insertInitProductStockDetail(@Param("mid") String mid,@Param("did")String did, @Param("date") Date date, @Param("productStock") ProductStock productStock, @Param("list") List<ProductStockDetailInfo> list);



}
